home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / GRAHAM / XA_6S.ZIP / SOURCE / EVENT_Q.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-27  |  537 b   |  26 lines

  1. /*
  2.  * XaAES - XaAES Ain't the AES
  3.  *
  4.  * A multitasking AES replacement for MiNT
  5.  *
  6.  */
  7.  
  8. /*
  9.     Event Wait Queues
  10. */
  11.  
  12. #ifndef _EVENT_Q_H_
  13. #define _EVENT_Q_H_
  14. #include "K_DEFS.H"
  15.  
  16. /* A queue of client processes that are waiting for an event */
  17. typedef struct evnt_q {
  18.     struct evnt_q *next;
  19.     short pid;        /* Id of client that is waiting for an event */
  20.     AESPB *pb;        /* pointer to the parameter block for the client */
  21. } EVNT_Q;
  22.  
  23. void EQ_append(EVNT_Q **q, short id, AESPB *pb);
  24. EVNT_Q *EQ_pull_head(EVNT_Q **q);
  25.  
  26. #endif